<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Entrada a Inventario</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">
				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>

				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">

									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 0px;'>
										<ice:panelGrid width="676">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px; background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'
												dir="RTL">


												<ice:outputText value="ENTRADA A INVENTARIO"
													styleClass="tituloform" />
											</ice:panelGrid>
											<ice:panelGrid columns="4" style="width: 600px; "
												styleClass="Conf_panelgrid3" cellpadding="0" cellspacing="0"
												border="0" dir="LTR">
												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Tipo&#160;: "
													style="color:#004080; font-size: 12px; font-weight: bold; text-align: left; " />

												<ice:selectOneMenu value="#{Entradas_MB.btipo}"
													style="width: 155px" tabindex="1"
													valueChangeListener="#{Entradas_MB.action_validadoc}"
													binding="#{Entradas_MB.txttipo}"
													disabled="#{Entradas_MB.sweditando}">
													<f:selectItems value="#{Entradas_MB.sel_document}" />
												</ice:selectOneMenu>
												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;Numero&#160;: "
													style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />
												<ice:panelGrid dir="LTR" columns="5" style="width: 158px"
													styleClass="Conf_panelgrid2">
													<ice:inputText value="#{Entradas_MB.bnumero}"
														partialSubmit="true" binding="#{Entradas_MB.txtnumero}"
														id="Numero" title="Numero de Documento"
														style="width: 80px" readonly="true">
														<f:validator validatorId="validandoNumero" />
													</ice:inputText>
													<ice:outputText value="&#160;&#160;&#160;Fecha&#160;: "
														style="color:#004080; font-size: 12px; text-align: right;" />
													<ice:inputText value="#{Entradas_MB.bfecha}"
														binding="#{Entradas_MB.txtfecha}" partialSubmit="true"
														style="width: 60px" readonly="true">
														<f:convertDateTime pattern="dd/MM/yyyy" />
													</ice:inputText>
													<ice:outputText value="&#160;&#160;&#160;Estado&#160;: "
														style="color:#004080; font-size: 12px;  text-align: left;" />
													<ice:selectOneMenu value="#{Entradas_MB.selecestado}"
														tabindex="3" binding="#{Entradas_MB.seleconeestado}"
														disabled="true" style="width: 80px">
														<f:selectItem itemValue="1" itemLabel="ACTIVA" />
														<f:selectItem itemValue="3" itemLabel="ENVIADA" />
														<f:selectItem itemValue="5" itemLabel="ANULADA" />
														<f:selectItem itemValue="7" itemLabel="CERRADO" />
														<f:selectItem itemValue="8" itemLabel="CONFRIMADA" />
													</ice:selectOneMenu>
												</ice:panelGrid>
											</ice:panelGrid>



											<ice:panelGrid columns="4" border="0"
												styleClass="Conf_panelgrid3">

												<ice:outputText value="&#160;Proveedor&#160;: "
													style="color:#004080; font-size: 12px;  text-align: left;" />

												<ice:panelGrid border="0" columns="3" style="width: 200px; "
													styleClass="Conf_panelgrid3">

													<ice:inputText value="#{Entradas_MB.bproveecod}"
														tabindex="2" binding="#{Entradas_MB.txtbproveecod}"
														maxlength="15"
														actionListener="#{Entradas_MB.action_ValidaProvee}"
														partialSubmit="true" disabled="#{Entradas_MB.sweditando}"
														style="width: 60px">
													</ice:inputText>
													<ice:commandButton styleClass="boton_busv"
														visible="#{!Entradas_MB.sweditando}"
														actionListener="#{Entradas_MB.popupAccion_EstadoProvee}" />
													<ice:inputText value="#{Entradas_MB.bproveenom}"
														maxlength="30" partialSubmit="true" readonly="true"
														style="width: 115px">
													</ice:inputText>
												</ice:panelGrid>


												<ice:outputText value="&#160;&#160;Bod&#160;Destino&#160;: "
													style="color:#004080; font-size: 12px;   text-align: left;" />
												<ice:panelGrid dir="LTR" border="0" columns="3"
													style="width: 158px" styleClass="Conf_panelgrid3">

													<ice:inputText value="#{Entradas_MB.bbodegas}" tabindex="3"
														binding="#{Entradas_MB.txtbodegasal}" maxlength="30"
														actionListener="#{Entradas_MB.action_Validabodega}"
														partialSubmit="true" disabled="#{Entradas_MB.sweditando}"
														style="width: 50px">
													</ice:inputText>
													<ice:commandButton styleClass="boton_busv"
														visible="#{!Entradas_MB.sweditando}"
														actionListener="#{Entradas_MB.popupAccion_CerrarBod}" />
													<ice:inputText value="#{Entradas_MB.bbodegasnom}"
														binding="#{Entradas_MB.txtbodegasalnom}" maxlength="30"
														partialSubmit="true" readonly="true" style="width: 130px">
													</ice:inputText>
												</ice:panelGrid>
											</ice:panelGrid>


											<ice:panelGrid columns="2" border="0"
												styleClass="Conf_panelgrid3"
												style="width: 600px; margin-top: 0px; padding-bottom: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px">
												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;Detalle&#160;: "
													style="color:#004080; font-size: 12px;  text-align: left;" />
												<ice:inputTextarea value="#{Entradas_MB.bdetalle}"
													onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
													binding="#{Entradas_MB.txtdetalle}" partialSubmit="true"
													style="width: 576px; height: 30px" tabindex="4">
												</ice:inputTextarea>
											</ice:panelGrid>


											<ice:panelGrid columns="7" width="607"
												binding="#{Entradas_MB.panelagregar}"
												visible="#{Entradas_MB.agregarpro}"
												rendered="#{Entradas_MB.agregarpro}" cellpadding="0"
												cellspacing="0" border="0">
												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;Producto "
													styleClass="qs_label" />
												<ice:outputText value="&#160;&#160;" />

												<ice:outputText value="&#160;&#160;Nombre "
													styleClass="qs_label" />
												<ice:outputText value="&#160;&#160;Unidad "
													styleClass="qs_label" />

												<ice:outputText value="&#160;&#160;Cantidad "
													styleClass="qs_label" />
												<ice:outputText value="" />
												<ice:outputText value="&#160;&#160;Series "
													visible="#{Entradas_MB.swserie}" styleClass="qs_label" />


												<ice:inputText value="#{Entradas_MB.aproducto}"
													binding="#{Entradas_MB.txtaproducto}" maxlength="15"
													partialSubmit="true" style="width: 100px"
													actionListener="#{Entradas_MB.action_Validaproducto}"
													tabindex="5">
												</ice:inputText>
												<ice:commandButton value="Buscar"
													image="./Media/img/but8v.bmp"
													actionListener="#{Entradas_MB.popupAccion_Cerrar}" />


												<ice:inputText value="#{Entradas_MB.apronombre}"
													readonly="true" binding="#{Entradas_MB.txtapronombre}"
													maxlength="40" partialSubmit="true" style="width: 138px"
													actionListener="#{Entradas_MB.action_Validausuario}">
												</ice:inputText>

												<ice:selectOneMenu value="#{Entradas_MB.selectedunimed}"
													style="width: 107px" tabindex="6">
													<f:selectItems value="#{Entradas_MB.sel_unimed}" />
												</ice:selectOneMenu>
												<ice:inputText value="#{Entradas_MB.aprocantidad}"
													onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
													binding="#{Entradas_MB.txtaprocantidad}" maxlength="15"
													disabled="#{Entradas_MB.swserie}" partialSubmit="true"
													style="width: 90px" tabindex="7">
												</ice:inputText>
												<!-- visible="#{!Entradas_MB.swserie}" rendered="#{!Entradas_MB.swserie}" -->
												<ice:commandButton value="AGREGAR" title="Agregar Producto"
													styleClass="botonv" visible="#{!Entradas_MB.swserie}"
													action="#{Entradas_MB.action_Guardar_Mngmcn}"
													disabled="#{Entradas_MB.swcerrado}" tabindex="8" />
												<ice:commandButton value="+ SERIES" title="Agregar Producto"
													styleClass="botonv"
													binding="#{Entradas_MB.cmd_Agraga_Series}"
													actionListener="#{Entradas_MB.popupAccion_EstadoSerie}"
													visible="#{Entradas_MB.swserie}"
													disabled="#{Entradas_MB.swcerrado}" tabindex="10" />



											</ice:panelGrid>


											<ice:panelGrid columns="1" border="0"
												style="width: 600px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-right-color: #B3BFCE; border-right-style: solid; border-bottom-color: #B3BFCE; border-top-color: #B3BFCE; border-bottom-style: solid; border-left-style: solid; border-top-style: solid; border-left-color: #B3BFCE">
												<ice:panelGrid columns="2">
													<ice:dataTable var="itemx" value="#{Entradas_MB.mngmcnw}"
														id="tableUnimedw" headerClass="iceDatTblColHdrv" rows="4"
														width="540" rendered="true" border="1">
														<ice:column style="width: 40px">
															<ice:rowSelector id="selected" value="#{itemx.selected}"
																multiple="false"
																selectionListener="#{Entradas_MB.rowSelectionListenerDetalle}"
																selectedClass="QsiceRowSelSelectedMouseOver"
																mouseOverClass="QsiceRowSelSelected" />
															<f:facet name="header">
																<ice:outputText value="Codigo" styleClass="headertabla" />
															</f:facet>
															<ice:outputText
																value="#{itemx.mngmcnw.producto.procodigo}"
																style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
														</ice:column>
														<ice:column style="width: 170px">
															<f:facet name="header">
																<ice:outputText value="Nombre" styleClass="headertabla" />
															</f:facet>
															<ice:outputText
																value="#{itemx.mngmcnw.producto.pronombre}"
																style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
														</ice:column>
														<ice:column style="width: 30px">
															<f:facet name="header">
																<ice:outputText value="Unidad" styleClass="headertabla" />
															</f:facet>
															<ice:outputText
																value="#{itemx.mngmcnw.unimedByMcnuniO.umdcodigo}"
																style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
														</ice:column>


														<ice:column style="width:55px">
															<f:facet name="header">
																<ice:outputText value="Cantidad"
																	styleClass="headertabla" />
															</f:facet>
															<ice:outputText value="#{itemx.mngmcnw.mcncantid}"
																style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
														</ice:column>
														<ice:column style="width:55px">
															<f:facet name="header">
																<ice:outputText value="Bodega" styleClass="headertabla" />
															</f:facet>
															<ice:outputText value="#{itemx.mngmcnw.bodega.bodcodigo}"
																style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
														</ice:column>
														<ice:column style="width:55px">
															<f:facet name="header">
																<ice:outputText value="Mov" styleClass="headertabla" />
															</f:facet>
															<ice:outputText value="#{itemx.mngmcnw.mcnindinv}"
																style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
														</ice:column>



													</ice:dataTable>


													<ice:panelGrid>
														<ice:commandButton value="EDITAR" title="Editar Producto"
															styleClass="botonv"
															actionListener="#{Entradas_MB.action_EditarMngmcn}"
															disabled="#{Entradas_MB.swcerrado}" />

														<ice:commandButton value="ELIMINAR"
															title="Eliminar Producto" styleClass="botonv"
															actionListener="#{Entradas_MB.action_confirmacionEliminarMngmcn}"
															disabled="#{Entradas_MB.swcerrado}" />

														<ice:commandButton value="SERIES"
															title="Eliminar Producto" styleClass="botonv"
															actionListener="#{Entradas_MB.popupAccion_EstadoSerieIngVer}"
															disabled="#{!Entradas_MB.sweditando}" />

													</ice:panelGrid>


												</ice:panelGrid>



												<ice:panelGrid columns="4"
													style="width: 524px; height: 39px">
													<ice:dataPaginator id="paginator" for="tableUnimedw"
														paginator="true" paginatorMaxPages="4"
														style="height: 17px">
														<f:facet name="first">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-first.gif" />
														</f:facet>
														<f:facet name="last">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-last.gif" />
														</f:facet>
														<f:facet name="previous">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-previous.gif" />
														</f:facet>
														<f:facet name="next">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-next.gif" />
														</f:facet>
														<f:facet name="fastforward">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-ff.gif" />
														</f:facet>
														<f:facet name="fastrewind">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-fr.gif" />
														</f:facet>
													</ice:dataPaginator>
													<ice:panelGrid columns="4" border="0" cellpadding="2"
														cellspacing="2">


														<ice:commandButton
															actionListener="#{Entradas_MB.action_confirmacionCerrarmngdoc}"
															styleClass="botonv" value="CONFIRMAR" tabindex="9"
															disabled="#{Entradas_MB.swcerrado}" />

														<ice:commandButton
															action="#{Entradas_MB.action_Guardar_MngDoc}"
															styleClass="botonv" value="GUARDAR" tabindex="10" />

														<ice:commandButton styleClass="botonv" value="SALIR"
															action="#{Entradas_MB.action_Cancelar}" />

													</ice:panelGrid>
												</ice:panelGrid>
											</ice:panelGrid>



											<ice:panelGrid columns="5" cellpadding="0" border="0"
												cellspacing="0" style="height: 37px">
												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;USUARIO&#160;:&#160; "
													style="color: #004080; font-size: 10px;" />
												<ice:inputText value="#{Entradas_MB.busuario}"
													binding="#{Entradas_MB.txtusuario}" maxlength="15"
													partialSubmit="true"
													style="width: 58px; border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; border-bottom-width: 0px; color: #004080; font-size: 10px;"
													actionListener="#{Entradas_MB.action_Validausuario}">
												</ice:inputText>

												<ice:inputText value="#{Entradas_MB.busunombre}"
													binding="#{Entradas_MB.txtnombre}" maxlength="50"
													partialSubmit="true"
													style="width: 110px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; padding-right: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin-right: 0px; margin-left: 0px; border-left-width: 0px; padding-top: 0px; padding-left: 0px; color: #004080; font-size: 10px;"
													readonly="true">
												</ice:inputText>

												<ice:panelGrid style="width: 377px">
													<ice:messages id="msg"
														style="width: 10px; height: 300px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px"
														globalOnly="false" />
												</ice:panelGrid>

											</ice:panelGrid>




											<ice:panelPopup id="popupVenta" draggable="false"
												modal="true" visible="#{Entradas_MB.modalRendered}"
												autoCentre="true" styleClass="corePopup"
												style=" width:  580px; height: 500px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 580px;">
														<ice:outputText value="Buscardor De Productos"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu value="#{Entradas_MB.busquedacmb}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="pronombre" itemLabel="Nombre" />
																<f:selectItem itemValue="procodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Entradas_MB.buscarpro}"
																binding="#{Entradas_MB.txtBuscarpro}"
																style="width: 97px"></ice:inputText>
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Entradas_MB.action_BuscarPro}" />
														</ice:panelGrid>
														<ice:dataTable var="item" headerClass="iceDatTblColHdrv"
															value="#{Entradas_MB.listProbodega}" id="tablepopup"
															rows="12" rendered="true" width="560">


															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.producto.procodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.producto.pronombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 50px">
																<f:facet name="header">
																	<ice:outputText value="Existencia"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.pbdexiste}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px;text-align: right;" />
															</ice:column>
															<ice:column style="width: 50px">
																<f:facet name="header">
																	<ice:outputText value="Cant. Comp. Ent"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.pbdcompent}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
															</ice:column>
															<ice:column style="width: 70px">
																<f:facet name="header">
																	<ice:outputText value="Cant. Comp. Sale"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.pbdcomprm}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
															</ice:column>


															<!--  			<ice:column style="width: 80px">
																<f:facet name="header">
																	<ice:outputText value="Existecia" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.probodegas.}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
														-->

															<ice:column style="width: 50px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.producto.procodigo}"
																	binding="#{Entradas_MB.popup_cmdselecionar}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Entradas_MB.popupAccion_Selecionar}"
																	title="Agregar Producto" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="4"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopup" for="tablepopup"
																paginator="true" paginatorMaxPages="4"
																style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Entradas_MB.popupAccion_Cerrar}" />

														</ice:panelGrid>
														<ice:panelGrid style="width: 392px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgpro"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<!-- FPOPUP BODEG d  -->

											<ice:panelPopup id="popupbodegas" draggable="false"
												modal="true" visible="#{Entradas_MB.modalpopupbodega}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 300px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Buscardor De Bodega Destino"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Entradas_MB.busquedacmbbodega}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="bodnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="bodcodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Entradas_MB.buscarbod}"
																binding="#{Entradas_MB.txtBuscarbod}"
																style="width: 97px"></ice:inputText>
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Entradas_MB.action_BuscarBod}" />
														</ice:panelGrid>
														<ice:dataTable var="item" headerClass="iceDatTblColHdrv"
															value="#{Entradas_MB.listaBodegapopup}"
															id="tablepopupbod" rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodcodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.bodcodigo}"
																	binding="#{Entradas_MB.popup_cmdselecionarBod}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Entradas_MB.popupAccion_SelecionarBod}"
																	title="Agregar Bodega" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupbod"
																for="tablepopupbod" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Entradas_MB.popupAccion_CerrarBod}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 392px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgbod"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>






											<ice:panelPopup id="popupproveedor" draggable="false"
												modal="true" visible="#{Entradas_MB.modalpopupProvee}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 320px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Proveedores"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">

														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Entradas_MB.busquedacmbProvee}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="vinnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="vincedula"
																	itemLabel="Cedula / Nit" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Entradas_MB.buscarProvee}"
																binding="#{Entradas_MB.txtBuscarProvee}"
																style="width: 97px" />
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Entradas_MB.action_BuscarProvee}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Entradas_MB.listaProveepopup}"
															id="tablepopupProveedor" headerClass="iceDatTblColHdrv"
															rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Cedula/Nit"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.vincedula}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.vinnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.vincedula}"
																	binding="#{Entradas_MB.popup_cmdselecionarProvee}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Entradas_MB.popupAccion_SelecionarProvee}"
																	title="Agregar Proveedor" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupProvee"
																for="tablepopupProveedor" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Entradas_MB.popupAccion_EstadoProvee}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 399px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgProvee"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


											<ice:panelPopup id="popupseries" draggable="false"
												modal="true" visible="#{Entradas_MB.modalpopupSerie}"
												rendered="#{Entradas_MB.modalpopupSerie}"
												styleClass="corePopup" autoCentre="true"
												style="text-align:left; width: 520px; height: 500px; ">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 283px;">
														<ice:outputText value="Registrando Serie de Productos"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup>

														<ice:panelGroup styleClass="Conf_panelgrid4">
															<ice:selectOneRadio id="MenuSlctRadio"
																style="font-size: 12px; width: 324px; height: 23px"
																valueChangeListener="#{Entradas_MB.action_TipoSeriales}"
																value="#{Entradas_MB.tipo_seriales}">
																<f:selectItem id="MenuHoriz" itemValue="0"
																	itemLabel="Agregar Seriales" />
																<f:selectItem id="MenuVert" itemValue="1"
																	itemLabel="Importar Seriales" />
															</ice:selectOneRadio>
														</ice:panelGroup>



														<ice:panelGrid columns="4" style="height: 20px"
															styleClass="Conf_panelgrid4"
															visible="#{Entradas_MB.btipo_seriales}"
															rendered="#{Entradas_MB.btipo_seriales}">
															<ice:outputText value="Serie&#160;:"
																styleClass="qs_label" />

															<ice:inputText value="#{Entradas_MB.agregarSerie}"
																onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
																binding="#{Entradas_MB.txtAgregaSerie}" tabindex="20"
																style="width: 181px" />
															<ice:commandButton type="submit" value="AGREGAR"
																styleClass="botonv" tabindex="21"
																actionListener="#{Entradas_MB.popupAccion_AgregarSerie}" />
														</ice:panelGrid>

														<ice:panelGrid columns="3" style="width: 429px"
															styleClass="Conf_panelgrid4"
															visible="#{!Entradas_MB.btipo_seriales}"
															rendered="#{!Entradas_MB.btipo_seriales}">
															<ice:outputText value="Serie&#160;:&#160;&#160;"
																styleClass="qs_label" />
															<ice:inputFile
																progressListener="#{Entradas_MB.fileUploadProgress}"
																buttonClass="botonv"
																actionListener="#{Entradas_MB.uploadFile}" label="Subir"
																submitOnUpload="postUpload" style="width: 400px" />

														</ice:panelGrid>


														<ice:dataTable var="item"
															value="#{Entradas_MB.listseries}" id="tablepopupSeries"
															headerClass="iceDatTblColHdrv" rows="9" rendered="true"
															width="460">

															<ice:column style="width: 180px">
																<f:facet name="header">
																	<ice:outputText value="# Serie"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.cconombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>


															<ice:column style="width: 20px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.cconombre}"
																	binding="#{Entradas_MB.popup_cmdselecionarSerie}"
																	image="./Media/img/Eliminar.jpg"
																	actionListener="#{Entradas_MB.popupAccion_EliminarSerie}"
																	title="Eliminar Serial " />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupseries"
																for="tablepopupSeries" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="INSERTAR"
																styleClass="botonv"
																action="#{Entradas_MB.action_Guardar_Mngmcn}" />
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Entradas_MB.popupAccion_EstadoSerie}" />


														</ice:panelGrid>
														<ice:panelGrid style="width: 495px"
															styleClass="Conf_panelgrid2">

															<ice:panelGroup style="width: 495px; height: 80px"
																scrollHeight="80px">
																<ice:messages id="msgSeries"
																	style="width: 10px; height: 80px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
															</ice:panelGroup>

															<ice:panelGrid style="width: 250px" columns="2"
																styleClass="Conf_panelgrid2">
																<ice:outputText value="Seriales Registrados :"
																	styleClass="qs_label" />
																<ice:inputText value="#{Entradas_MB.numseries}"
																	dir="RTL" readonly="true" style="width: 80px" />

															</ice:panelGrid>


														</ice:panelGrid>

													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<ice:panelPopup id="popupseriesIng" draggable="false"
												modal="true" visible="#{Entradas_MB.modalpopupSerieIng}"
												rendered="#{Entradas_MB.modalpopupSerieIng}"
												styleClass="corePopup" autoCentre="true"
												style="text-align:left; width: 520px; height: 500px; ">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 283px;">
														<ice:outputText value="Registrando Serie de Productos"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup>

														<ice:dataTable var="item"
															value="#{Entradas_MB.listseriesIng}"
															id="tablepopupSeriesIng" headerClass="iceDatTblColHdrv"
															rows="15" rendered="true" width="460">
															<ice:column style="width: 150px">
																<f:facet name="header">
																	<ice:outputText value="# SERIE"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.id.msnserial}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>


														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupseriesIng"
																for="tablepopupSeriesIng" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>

															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Entradas_MB.popupAccion_EstadoSerieIng}" />


														</ice:panelGrid>
														<ice:panelGrid style="width: 495px"
															styleClass="Conf_panelgrid2">



															<ice:panelGrid style="width: 250px" columns="2"
																styleClass="Conf_panelgrid2">
																<ice:outputText value="Seriales Registrados :"
																	styleClass="qs_label" />
																<ice:inputText value="#{Entradas_MB.numseriesIng}"
																	dir="RTL" readonly="true" style="width: 80px" />

															</ice:panelGrid>


														</ice:panelGrid>

													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<ice:panelPopup id="popupEliminapro" draggable="false"
												modal="true" visible="#{Entradas_MB.modalRenderedpro}"
												autoCentre="true" styleClass="Conf_panelgrid2"
												style=" width: 400px; height: 110px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea eliminar el registro " />
														<br />
														<ice:outputText styleClass="qs_label"
															value="#{Entradas_MB.nombreEliminarpro}?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																actionListener="#{Entradas_MB.action_EliminarTablaPro}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Entradas_MB.toggleModalpro}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<ice:panelPopup id="popupenviar" draggable="false"
												modal="true" visible="#{Entradas_MB.modalRenderedenviar}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 400px; height: 110px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea Confirmar esta entrada ?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																actionListener="#{Entradas_MB.action_CerrarMngDoc}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Entradas_MB.toggleModalenviar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>